/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.entity.selectiontitle;

import com.idenger.common.persistence.DataEntity;
import com.idenger.common.utils.excel.annotation.ExcelField;
import org.hibernate.validator.constraints.Length;

/**
 * 选择题Entity
 * @author 兰正军
 * @version 2017-11-30
 */
public class EduSelectionTitle extends DataEntity<EduSelectionTitle> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// 题目
	private String trueResult;		// 正确答案
	private String op1;		// 选项一
	private String op2;		// 选项二
	private String op3;		// 选项三
	private String op4;		// 选项四
	private String op5;		//选项五
	private String op6;		//选项六
	private String op7;		//选项七
	private String type;		// 1单选，2多选
	private String userOptions;	//用户的选择，指做题者填写的答案
	private String isCheckQuesionWarehouse;
	private String warehouseCreareDate;
	
	public EduSelectionTitle() {
		super();
	}

	public EduSelectionTitle(String id){
		super(id);
	}
	@ExcelField(title="题干", align=2, sort=20)
	@Length(min=0, max=1024, message="题目长度必须介于 0 和 1024 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	@ExcelField(title="答案", align=2, sort=30) 
	@Length(min=0, max=1024, message="正确答案长度必须介于 0 和 1024 之间")
	public String getTrueResult() {
		return trueResult;
	}

	public void setTrueResult(String trueResult) {
		this.trueResult = trueResult;
	}
	
    @ExcelField(title="选项A", align=2, sort=40)  
	@Length(min=0, max=1025, message="选项一长度必须介于 0 和 1025 之间")
	public String getOp1() {
		return op1;
	}

	public void setOp1(String op1) {
		this.op1 = op1;
	}
	
	@ExcelField(title="选项B", align=2, sort=50) 
	@Length(min=0, max=1025, message="选项二长度必须介于 0 和 1025 之间")
	public String getOp2() {
		return op2;
	}

	public void setOp2(String op2) {
		this.op2 = op2;
	}
	
	@ExcelField(title="选项C", align=2, sort=60)
	@Length(min=0, max=1025, message="选项三长度必须介于 0 和 1025 之间")
	public String getOp3() {
		return op3;
	}

	public void setOp3(String op3) {
		this.op3 = op3;
	}
	
	@ExcelField(title="选项D", align=2, sort=70)
	@Length(min=0, max=1025, message="选项四长度必须介于 0 和 1025 之间")
	public String getOp4() {
		return op4;
	}

	public void setOp4(String op4) {
		this.op4 = op4;
	}
	
    @ExcelField(title="题型", align=2, sort=10)  
	@Length(min=0, max=64, message="1单选，2多选长度必须介于 0 和 64 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUserOptions() {
		return userOptions;
	}

	public void setUserOptions(String userOptions) {
		this.userOptions = userOptions;
	}

	public String getIsCheckQuesionWarehouse() {
		return isCheckQuesionWarehouse;
	}

	public void setIsCheckQuesionWarehouse(String isCheckQuesionWarehouse) {
		this.isCheckQuesionWarehouse = isCheckQuesionWarehouse;
	}

	public String getWarehouseCreareDate() {
		return warehouseCreareDate;
	}

	public void setWarehouseCreareDate(String warehouseCreareDate) {
		this.warehouseCreareDate = warehouseCreareDate;
	}

	public String getOp5() {
		return op5;
	}

	public void setOp5(String op5) {
		this.op5 = op5;
	}

	public String getOp6() {
		return op6;
	}

	public void setOp6(String op6) {
		this.op6 = op6;
	}

	public String getOp7() {
		return op7;
	}

	public void setOp7(String op7) {
		this.op7 = op7;
	}

	
}